<?php
require_once( 'Zend/Db.php' );
require_once( 'Zend/Db/Table.php' );
require_once( 'Zend/Db/Table/Abstract.php' );

class COLA_DE_ESPERA extends Zend_Db_Table_Abstract
{
	protected $_name = 'COLA_DE_ESPERA';
	
	public function insToCola(){
		$data = array('PAC_PDNI' => $this->pacdni,
						'PDNI' => $this->meddni,
						'HORA_LLEGADA' => $this->horallegada);
		try {
        $result = $this->insert($data);
		}catch(Exception $e){
			return 0;
		}
        return 1;
	}
}